<template>
  <el-container class="main-container">
    <el-aside width="auto" >
      <common-aside></common-aside>
    </el-aside>
    <el-container>
      <el-header>
        <common-header></common-header>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import commonAside from "@/components/CommonAside";
import commonHeader from "@/components/CommonHeader";

export default {
  name: "Main",
  components: {
    commonAside,commonHeader
  }

}
</script>

<style scoped lang="less">
.main-container {
  height: 100vh;
}

.el-header {
  display: flex;
  align-items: center;
  background-color: #333333;
  color: #fff;
  line-height: 50px;
}


.el-aside {
  background-color: #D3DCE6;
  color: #333;
}

.el-main {
  background-color: #F5F7FA;
  color: #333;

}
</style>